from flask import Flask, jsonify
from topology import railway_network
app = Flask(__name__)

@app.route('/api/topology', methods=['GET'])
def get_topology():
    topology_data = railway_network.get_shapes()
    print(topology_data)
    # return {"AAAA": "AA", "nb": "“xxx"}
    return jsonify(topology_data)

if __name__ == '__main__':
    app.run(debug=True)
